package com.qianguo.shop.entity;

import android.os.Parcel;
import android.os.Parcelable;

import com.alibaba.fastjson.annotation.JSONField;
import com.eva.androidlibrary.api.entity.BaseBean;

/**
 * 配送员信息
 *
 * @author eva
 * @date 16/5/31
 */
public class Mailmen extends BaseBean implements Parcelable {

    /** 店铺id */
    @JSONField(name = "shopid")
    private String shopId;

    /** 绑定状态，待商定todo */
    private int status;

    /** 创建时间 */
    @JSONField(name = "created_at")
    private long createdAt;

    /** 更新时间 */
    @JSONField(name = "updated_at")
    private long updatedAt;

    /** 账号id */
    private String uuid;

    /** 近7天配送订单数 */
    @JSONField(name = "courier_seven_order")
    private int courierSevenOrder;

    /** 手机号 */
    private String phone;

    /** 真实姓名 */
    @JSONField(name = "realname")
    private String realName;

    /** 昵称 */
    @JSONField(name = "nickname")
    private String nickName;

    /** 性别 */
    private String sex;

    /** 性别代号 */
    @JSONField(name = "sexcode")
    private int sexCode;

    /** 头像 */
    private String avatar;

    public String getShopId() {
        return shopId;
    }

    public void setShopId(String shopId) {
        this.shopId = shopId;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public long getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(long createdAt) {
        this.createdAt = createdAt;
    }

    public long getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(long updatedAt) {
        this.updatedAt = updatedAt;
    }

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    public int getCourierSevenOrder() {
        return courierSevenOrder;
    }

    public void setCourierSevenOrder(int courierSevenOrder) {
        this.courierSevenOrder = courierSevenOrder;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public int getSexCode() {
        return sexCode;
    }

    public void setSexCode(int sexCode) {
        this.sexCode = sexCode;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.shopId);
        dest.writeInt(this.status);
        dest.writeLong(this.createdAt);
        dest.writeLong(this.updatedAt);
        dest.writeString(this.uuid);
        dest.writeInt(this.courierSevenOrder);
        dest.writeString(this.phone);
        dest.writeString(this.realName);
        dest.writeString(this.nickName);
        dest.writeString(this.sex);
        dest.writeInt(this.sexCode);
        dest.writeString(this.avatar);
    }

    public Mailmen() {
    }

    protected Mailmen(Parcel in) {
        this.shopId = in.readString();
        this.status = in.readInt();
        this.createdAt = in.readLong();
        this.updatedAt = in.readLong();
        this.uuid = in.readString();
        this.courierSevenOrder = in.readInt();
        this.phone = in.readString();
        this.realName = in.readString();
        this.nickName = in.readString();
        this.sex = in.readString();
        this.sexCode = in.readInt();
        this.avatar = in.readString();
    }

    public static final Parcelable.Creator<Mailmen> CREATOR = new Parcelable.Creator<Mailmen>() {
        public Mailmen createFromParcel(Parcel source) {
            return new Mailmen(source);
        }

        public Mailmen[] newArray(int size) {
            return new Mailmen[size];
        }
    };
}
